package com.lonely.factory.abstractfactory;

/**
 * @date: 2022-04-02 17:24
 * @author: ztkj-hzb
 * @description:
 **/
public class Main {

    public static void main(String[] args) {

        HouseFactory chinaHouseFactory = new ChinaHouseFactory();

        System.out.println("中国房子");
        chinaHouseFactory.createDoor().printDoorType();
        chinaHouseFactory.createBed().printBedType();

        System.out.println("-----------------------------------");

        HouseFactory foreignHouseFactory = new ForeignHouseFactory();

        System.out.println("外国房子");
        foreignHouseFactory.createDoor().printDoorType();
        foreignHouseFactory.createBed().printBedType();
    }

}
